package com.rain.rain.retrofit.http.test

import kotlinx.coroutines.Deferred
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.QueryName

/**
 *@Author: Rain
 *@Date: 2021/9/29 9:51
 *@Description: 登录相关的api
 */
interface Login2Service {

    companion object {
        const val BASE_URL = "http://192.168.3.220:11003"
    }

    @GET("/auth/app/login")
    fun loginAsync(
        @Query("smsVerifyCode") smsVerifyCode: String,
        @Query("username") username: String
    ): Deferred<LoginUserData>

}